package com.idudiao.sc.neo4j.repository;

import com.idudiao.sc.neo4j.model.node.Legend;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

/**
 * @author songyinyin
 * @since 2019/1/7 14:43
 */
public interface LegendRepository extends CrudRepository<Legend, Long> {

    Optional<Legend> findByName(String name);
}
